<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "leftForSaBorrow.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="投标列表">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module export">
                                <input type="button" onclick="exportxls()" value="导出列表" class="input-button export-btn"/>
                                <#if param??&&param.status??>
                                    <#assign status=(param.get("status"))?number >
                                        <#else>
                                            <#assign status=-1>
                                </#if>
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>ID</td>
                                        <td>投标人</td>
                                        <td>投标金额</td>
                                        <td>有效投标金额</td>
                                        <td>奖励</td>
                                        <td>投标时间</td>
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#list list as item>
                                            <tr class="s">
                                                <td>${(page.currentPage-1)*page.pernum+item_index+1}</td>
                                                <td>
                                                    ${item.user.showName}
                                                </td>
                                                <td>￥${func.format2(item.money!"0")}</td>
                                                <td>
                                                    ￥${func.format2(item.account!"0")}
                                                </td>
                                                <td>
                                                    <#if award??&&award==0>	没有
                                                        <#elseif award??&&award==1>
                                                            ${(borrow.part_account)!0}%奖励
                                                            <#elseif award??&&award==2>
                                                                ￥${(borrow.funds)!0}元奖励
                                                                <#else>
                                                    </#if>
                                                </td>
                                                <td>${dateformat(item.addtime)}</td>
                                            </tr>
                                        </#list>
                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="/admin/borrow/tenderlist.html?borrow_id=${borrow.id?c}" map=param style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->

                            <script>
                                var urls = '?borrow_id=${borrow.id?c}&search=true';
                                var xlsurl='?borrow_id=${borrow.id?c}&type=export';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    var status = $("#status").val();
                                    if (status!=null&&status!=""&&status!="undefine"){
                                        sou += "&status="+status;
                                    }
                                    var url=urls+sou
                                    location.href=url;
                                }
                                function exportxls(){
                                    var num='${(page.total)?c}';
                                    num=num.replace(",","");
                                    if(num>30000){ //条数自己定义，但必须小于65536
                                        alert("数据过多，请选择指定的时间进行数据查询导出！"); //提示信息根据不同的内容注意修改下。
                                        return false;
                                    }
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    var status = $("#status").val();
                                    if (status!=null&&status!=""&&status!="undefine"){
                                        sou += "&status="+status;
                                    }
                                    var url=xlsurl+sou
                                    location.href=url;
                                }
                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"></div>
    <#include "../jsPage.html">
    </body>
</html>
